package com.ssl.rms.mapper;

import com.ssl.rms.entity.Config;
import com.ssl.rms.entity.ConfigExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ssl on 2018-3-29.
 */
public interface BaseMapper<T, Example> {
    /**
     * @mbg.generated
     */
    long countByExample(Example example);

    /**
     * @mbg.generated
     */
    int deleteByExample(Example example);

    /**
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * @mbg.generated
     */
    int insert(T record);

    /**
     * @mbg.generated
     */
    int insertSelective(T record);

    /**
     * @mbg.generated
     */
    List<T> selectByExample(Example example);

    /**
     * @mbg.generated
     */
    T selectByPrimaryKey(Long id);

    /**
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") T record, @Param("example") Example example);

    /**
     * @mbg.generated
     */
    int updateByExample(@Param("record") T record, @Param("example") Example example);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(T record);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKey(T record);
}
